import processor, re

notSet = "You see nothing unexpected."

examineRegexp = re.compile("^(examine|x) (.*)")

def getDescription(self):
    return self.__dict__.get("desc", notSet)
processor.Object.getDescription = getDescription

class Examine(object):
    def process(self, command):
        match = examineRegexp.search(command)
        if match:
            i = processor.getItem(match.group(2))
            return i.getDescription()

processor.commands.append(Examine())
